<%@ Page Language="C#" MasterPageFile="../main/ManagerMasterPage.master" AutoEventWireup="true" CodeFile="view_news.aspx.cs" Inherits="manager_news_view_news" Title="News" ValidateRequest="false" %>

<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2"%>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentBody" Runat="Server">
    <h3 align="center">Add/Edit news</h3>
<table width="98%" cellspacing=5 border=1>
    <tr>
        <td width="10%"><span class="label">Title:</span></td>
        <td width="88%"><asp:TextBox ID="txtTITLE" runat="server"></asp:TextBox></td>
    </tr>

   <tr valign="middle">
        <td width="10%"><span class="label">Images:</span></td>
        <td width="88%">
            <asp:ListBox ID="listbox_image" Rows="5" runat="server" AutoPostBack=true OnSelectedIndexChanged="listbox_image_SelectedIndexChanged"></asp:ListBox>
            <span class="label" >Preview :</span>
            <asp:Image ID="image_preview" runat="server" Width="100" Height="100"  Visible=true />
        </td>
    </tr>
    
    <tr>
        <td width="10%"><span class="label">Type:</span></td>
        <td width="88%">
            <asp:DropDownList ID="ddl_type" runat="server"></asp:DropDownList>
        </td>
    </tr>
    <tr>
        <td><span class="label">Short news :</span></td>
        <td>
            <FCKeditorV2:FCKeditor ID="fckSHORT" runat="server" Width="700" Height="200">
            </FCKeditorV2:FCKeditor>
        </td>
        <%--<td><fckeditorv2:fckeditor id="fckSHORT" runat="server"></fckeditorv2:fckeditor></td>--%>
    </tr>
    <tr>
        <td><span class="label">Detail news :</span></td>
        <td>
            <FCKeditorV2:FCKeditor ID="fckDETAIL" runat="server"  Width="700" Height="600">
            </FCKeditorV2:FCKeditor>
        </td>
        <%--<td><fckeditorv2:fckeditor id="fckDETAIL" runat="server"></fckeditorv2:fckeditor></td>--%>
    </tr>
    <tr height="20"></tr>
<%--    <tr>
        <td></td>    
        <td><asp:Button ID="btnNew" runat="server" OnClick="clearText" Text="New" /></td>
    </tr>--%>
    
</table>
<br />
<asp:ImageButton ID="btnUpdate" runat="server" OnClick="execute" ImageUrl="../../images/update.gif" />
</asp:Content>

